package com.crl.gClient.state.action
{
	import com.crl.game.simulation.client.ActorProxy;
	import com.crl.game.simulation.client.view.ActorView;
	import com.crl.game.simulation.common.action.AbstractAction;
	
	import flash.geom.Point;
	
	public class TeleportAction extends AbstractAction
	{
		private var point:Point;
		public function TeleportAction(point:Point)
		{
			super();
			this.point=point;
		}
		
		
		override public function start(actor:ActorProxy):void
		{
			var view:ActorView=actor.getView();
			
			view.x=point.x;
			view.y=point.y;
			
			setFinished(true);
		}
	}
}